
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include( 'shared.lua' )


/*---------------------------------------------------------
   Name: Initialize
---------------------------------------------------------*/
function ENT:Initialize()

	self.Entity:SetModel( "models/props_junk/meathook001a.mdl" )
	self.Entity:PhysicsInit( SOLID_VPHYSICS )
	self.Entity:SetMoveType( MOVETYPE_VPHYSICS )
	self.Entity:SetSolid( SOLID_VPHYSICS )
	
	local phys = self.Entity:GetPhysicsObject()
	if (phys:IsValid()) then
		phys:Wake()
	end
	
end

function ENT:Use( activator, caller )


end

/*---------------------------------------------------------
   Name: OnTakeDamage
---------------------------------------------------------*/
function ENT:OnTakeDamage( dmginfo )

	// React physically when shot/getting blown
	self.Entity:TakePhysicsDamage( dmginfo )
	
end


function ENT:Think()


	
end


function ENT:StartTouch( ent )

	if (ent:IsValid()) then
	
		if (ent:GetClass() == "reality_fishing_bait") then
		
			ent:SetSolid(SOLID_NONE)
			ent:SetPos(self.Entity:GetPos() - self.Entity:GetUp() * 20)
			ent:SetParent(self.Entity)
		
		end
	
	end

end